package manage.service;

import core.domain.Result;
import manage.domain.exam.dto.ExamAddDTO;
import manage.domain.exam.dto.ExamEditDTO;
import manage.domain.exam.dto.ExamListDTO;
import manage.domain.exam.dto.ExamQuestionAddDTO;
import manage.domain.exam.vo.ExamDetailVO;
import manage.domain.exam.vo.ExamVO;

import java.util.List;

public interface IExamService {
    List<ExamVO> list(ExamListDTO examListDTO);

    String add(ExamAddDTO examAddDTO);

    boolean addQuestion(ExamQuestionAddDTO examQuestionAddDTO);

    ExamDetailVO detail(Long examId);

    int edit(ExamEditDTO examEditDTO);

    int deleteQuestion(Long examId, Long questionId);

    int delete(Long examId);

    int publish(Long examId);

    int unPublish(Long examId);

}
